const path = require('path');
const fpath = 'E:/htmlspace/nodejs/day01/06.path.join方法的使用.js';
console.log(path.basename(fpath));
console.log(path.basename(fpath, '.js'));